package cn.relx.fallback;

import cn.relx.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class getByIdFallbackClass {
    public static User getByIdBlockHandler(@PathVariable("id") Long id, Throwable throwable){
        return new User(-1L,"外部熔断测试","熔断！");
    }
}
